-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communicate process kill signals without being blocked by stdout/err reads #472
Communicate process kill signals without being blocked by stdout/err reads #472
Conversation
is it necessary to wait after the kill? Shouldn’t the await be enough? |
Agree with @dobrac here. Why to have wait here if we're already awaiting |
@0div just a quick question, would it make sense to add tests for this? Or it makes more sense to have the tests in the SDK repo? |
@mlejva as a unit test? it would be difficult to emulate linux syscall signal behaviour. |
I suppose more of an integration test. It would also help with reviewing the PR. I can approve it and sort of see it's working by looking at the code but the test would make this easier |
@0div there is no setup for envd client in the integration tests (running command, killing command inside of the sandbox), I can try to set it up so you can take the test to the infra |
@dobrac it would be cool to be able to move/adapt these SDK integration-y tests (at least the setup and template) into this! |
…command-by-pid-may-not-work-as-expected-e2b-1790
Added an alternative implementation building on top of #480 that we should probably use here. |
Should I merge it into here? |
…nd-by-pid-may-not-work-as-expected-e2b-1790
Description
envd
more similar to what provision.sh does in template-managerTest
I will commit an integration test in E2B js-sdk that goes like this: